Skip to content

Add operating_system and disable_software_webgl options - #160

Merged
NikhilShahi merged 4 commits into
mainfrom
cursor/web-fetch-os-webgl-options-2b12
Nov 25, 2026
Merged

NikhilShahi merged 4 commits into
mainfrom
cursor/web-fetch-os-webgl-options-2b12

Conversation

@NikhilShahi

@NikhilShahi NikhilShahi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the new server params from browserctrl #1874 and #1889. Wire names and placement were checked against browserctrl master (server/src/routes/api/web/v2/schema.ts browserV2Schema, and SessionOptionsBase in server/src/services/session/schemas.ts).

Changes

  • Web Fetch browser options (shared by web.fetch, web.batch_fetch, web.crawl):
    • operating_system (OperatingSystem literal, reusing the existing type) serialized as operatingSystem
    • disable_software_webgl (bool) serialized as disableSoftwareWebGL
  • Session creation: disable_software_webgl (optional bool) serialized as top-level disableSoftwareWebGL.
  • SessionLaunchState parses the disableSoftwareWebGL field the server returns (approved by Nikhil).
  • Both request options are optional and omitted from the payload when unset. Added to the TypedDict request types and the legacy Pydantic request models.
  • Tests: wire-format tests for dict and legacy-model inputs (fetch, batch fetch, crawl, session), launch-state parsing, plus mypy/Pyright valid and invalid fixtures.
  • Version bumped to 1.15.7 in pyproject.toml (patch bump requested by Nikhil).

API impact

Additive only.

client.web.fetch({
    "url": "https://example.com",
    "browser": {"operating_system": "macos", "disable_software_webgl": True},
})
client.sessions.create({"disable_software_webgl": True})
Open in Web Open in Cursor 

Note

Low Risk
Additive API surface only; no changes to auth, data handling, or existing call behavior when options are omitted.

Reviewed by Cursor Bugbot for commit 8c804b5. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
@AHarmlessPyro

AHarmlessPyro commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ce01637. Configure here.

Comment thread hyperbrowser/models/session.py Resolved
cursoragent and others added 3 commits November 25, 2026 22:00
Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
@NikhilShahi
NikhilShahi added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 06fd7a5 Nov 25, 2026
13 checks passed
@NikhilShahi
NikhilShahi deleted the cursor/web-fetch-os-webgl-options-2b12 branch November 25, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants